<script language="JavaScript">
//<!--
function f_initOther(){
	var tableObj = document.getElementById('tblgrid');
	if (tableObj){
		var tbodyObjs = tableObj.getElementsByTagName('tbody');
		if (tbodyObjs && tbodyObjs.length > 0){
			var tbodyObj = tbodyObjs[0];
			var trObjs = tbodyObj.getElementsByTagName('tr');
			for(var i = 0; i < trObjs.length; i++){
				var trObj = trObjs[i];
				var typeObj = trObj.childNodes[1];
				var type = typeObj.innerHTML;
				var img = "";
				if (type == '<eam:message key="ddlb.sjwarning.0" />'){
					img = "0";
				}
				else if (type == '<eam:message key="ddlb.sjwarning.1" />'){
					img = "1";
				}
				else if (type == '<eam:message key="ddlb.sjwarning.2" />'){
					img = "2";
				}
				typeObj.align = 'center';
				typeObj.innerHTML = '<img src="<%=CONTEXTPATH%>/images/sjtarget/'+img+'.gif" alt="'+type+'"/>';
				var typeObj2 = trObj.childNodes[2];
				typeObj2.align="center";
			}
		}
	}
}

function f_sync(){
	document.getElementById("sync").disabled = true;
	document.forms(formName).ActionType.value = "sync";
	document.forms(formName).action = "<%=CONTEXTPATH%>/commonAction.do";
	document.forms(formName).target = targetName;
	document.forms(formName).submit();
}
//-->
</script>